package com.tedu.day04mybatis.mapper;

import com.tedu.day04mybatis.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    @Insert("INSERT INTO user(username,password,nickname,created,age)" +
            "    VALUES(#{username},#{password},#{nickname},#{created},#{age})")
    int insert(User user);
}
